﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucTimKiemHocVien.ascx.cs"
    Inherits="STT.Admin.UserControls.ucTimKiemHocVien" %>

<div id="content-header">
    <div id="breadcrumb">
        <a href="../Default.aspx" class="tip-bottom" data-original-title="Về bảng điều khiển">
            <i class="icon-home"></i>Trang chủ
        </a>
        <a href="../Admin/Default.aspx?" class="current">Tìm kiếm</a>
        <a href="../Admin/Default.aspx?" class="current">Tìm kiếm học viên</a>
    </div>
</div>
<div class="widget-box collapsible">
    <div class="widget-title">
        <a href="#collapseOne" data-toggle="collapse" class="">
            <span class="icon"><i class="icon-th"></i></span>
            <h5>Điều kiện tìm kiếm học viên</h5>
        </a>
    </div>

    <div class="in collapse" id="collapseOne" style="height: auto;">
        <div class="widget-content nopadding">
            <div class="dataTables_wrapper" role="grid">
                <%-- Cac dieu kien tim kiem --%>
                <div class="container-fluid">
                    <div class="row-fluid">
                        <div class="span6">

                            <div class="control-group">
                                <label class="control-label">Mã học viên: </label>
                                <div class="controls">
                                    <asp:TextBox ID="txtMaHocVien" runat="server" class="span20" placeholder="Mã học viên"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Tên học viên: </label>
                                <div class="controls">
                                    <asp:TextBox ID="txtTenHocVien" runat="server" class="span20" placeholder="Tên học viên"></asp:TextBox>
                                </div>
                            </div>
                            <%--                            <div class="control-group">
                                <label class="control-label">Tuổi: </label>
                                <div class="controls">
                                    <asp:TextBox ID="txtTuoi" runat="server" class="span20" placeholder="Tuổi"></asp:TextBox>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Địa chỉ: </label>
                                <div class="controls">
                                    <asp:TextBox ID="txtDiaChi" runat="server" class="span20" placeholder="Địa chỉ"></asp:TextBox>
                                </div>
                            </div>--%>
                            <%--           <div class="control-group">
                                <label class="control-label">Quê quán: </label>
                                <div class="controls">
                                    <asp:TextBox ID="txtQueQuan" runat="server" class="span20" placeholder="Quê quán"></asp:TextBox>
                                </div>
                            </div>--%>
                            <div class="control-group">
                                <label class="control-label">Môn học :</label>
                                <div class="controls">
                                    <asp:DropDownList ID="ddMonHoc" runat="server" CssClass="span20"></asp:DropDownList>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Số khóa học: </label>
                                <div class="controls">
                                    <asp:TextBox ID="txtSoKhoaHoc" runat="server" class="span20" placeholder="Số khóa học"></asp:TextBox>
                                </div>
                            </div>
                            <%--<div class="control-group">
                                <label class="control-label">Thời gian công tác:</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtThoiGianCongTac" runat="server" class="span20" placeholder="Thời gian công tác"></asp:TextBox>
                                </div>
                            </div>--%>
                            <div class="control-group">
                                <label class="control-label">Lớp học :</label>
                                <div class="controls">
                                    <asp:DropDownList ID="ddLopHoc" runat="server" CssClass="span20"></asp:DropDownList>
                                </div>
                            </div>
                        </div>
                        <div class="span6">


                            <div class="control-group">
                                <label class="control-label">Chức vụ :</label>
                                <div class="controls">
                                    <asp:DropDownList ID="ddChucVu" runat="server" CssClass="span20"></asp:DropDownList>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Đơn vị :</label>
                                <div class="controls">
                                    <asp:DropDownList ID="ddDonVi" runat="server" CssClass="span20"></asp:DropDownList>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Chuyên môn :</label>
                                <div class="controls">
                                    <asp:DropDownList ID="ddChuyenMon" runat="server" CssClass="span20"></asp:DropDownList>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Học vấn :</label>
                                <div class="controls">
                                    <asp:DropDownList ID="ddHocVan" runat="server" CssClass="span20"></asp:DropDownList>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">Trình độ ngoại ngữ :</label>
                                <div class="controls">
                                    <asp:DropDownList ID="ddTrinhDoNgoaiNgu" runat="server" CssClass="span20"></asp:DropDownList>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl">
                    <asp:Button ID="btTimKiem" runat="server" Text="Tìm kiếm" CssClass="btn btn-info"
                        OnClick="btTimKiem_Click" />
                </div>
            </div>
        </div>
    </div>
    <%-- Gridview ket qua tim kiem --%>
    <div class="widget-title">
        <a href="#collapseTwo" data-toggle="collapse" class="">
            <span class="icon"><i class="icon-th"></i></span>
            <h5>Kết quả tìm kiếm</h5>
        </a>
    </div>
    <div class="in collapse" id="collapseTwo" style="height: auto;">
        <div class="widget-content nopadding">
            <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
                <asp:GridView ID="gvHocVien" runat="server" AutoGenerateColumns="False"
                    DataKeyNames="MaHV" CssClass="table table-bordered table-hover" 
                    OnPageIndexChanging="gvHocVien_PageIndexChanging" PageSize="20">
                    <Columns>
                        <asp:BoundField DataField="MaHV" HeaderText="Mã HV"
                            InsertVisible="False" ReadOnly="True" SortExpression="MaHV" />
                        <asp:BoundField DataField="TenHV" HeaderText="Họ tên"
                            SortExpression="TenHV" />
                        <asp:BoundField DataField="TenDonVi" HeaderText="Đơn vị"
                            SortExpression="TenDonVi" />
                        <asp:BoundField DataField="TenChucVu" HeaderText="Chức vụ"
                            SortExpression="TenChucVu" />
                        <asp:BoundField DataField="TenTDChuyenMon" HeaderText="Chuyên môn"
                            SortExpression="TenTDChuyenMon" />
                        <asp:BoundField DataField="TenTDHocVan" HeaderText="Trình độ"
                            SortExpression="TenTDHocVan" />
                        <asp:BoundField DataField="SoKhoaHoc" HeaderText="Số khóa học"
                            SortExpression="SoKhoaHoc" />
                        <asp:TemplateField HeaderText="Chi tiết" ShowHeader="False" ItemStyle-CssClass="span1">
                            <ItemTemplate>
                                <asp:Label ID="lblChiTiet" runat="server" data-original-title="Tooltip <br/> in left"
                                    CssClass="tip-left">
                                <img src="../../img/detail.jpg" alt="Alternate Text" />
                                </asp:Label>
                            </ItemTemplate>

                            <ItemStyle CssClass="span1" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                        </asp:TemplateField>
                        <%--    <asp:BoundField DataField="TenTDHocVan" HeaderText="Trình độ"
                            SortExpression="TenTDHocVan" />--%>
                    </Columns>
                </asp:GridView>

                <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl">
                    <div class="btn-group">
                        <button class="btn">
                            <asp:LinkButton ID="lbXuatDuLieu" runat="server" OnClick="lbXuatDuLieu_Click">Xuất dữ liệu</asp:LinkButton>
                        </button>
                        <button data-toggle="dropdown" class="btn dropdown-toggle">
                            <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu">
                            <li><a href="#">Xuất Excel</a></li>
                            <li><a href="#">Xuất Word</a></li>
                            <li><a href="#">Xuất PDF</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
